package com.ysh.ioc.model;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@ConfigurationProperties(prefix = "person")
@Configuration
@Data
public class Person {
    //@Value("${person.age}")
    Integer age;
    //@Value("${person.id}")
    Integer id;
    //@Value("${person.name}")
    String name;

}
